<?php


namespace app\callback;


class B
{
    public function main()
    {
        $b = new A();
        $b->process(new Callback($this),'testCallback');
    }

    public function testCallback()
    {
        echo 'this is B calback';
    }
}